package com.sgb.kjwl.model.entity.self;

import java.text.SimpleDateFormat;

public class TeamPerson {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBirthDate() {
        if (birthDate!=null){
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
            String format = sdf.format(birthDate);
            return format;
        }else {
            return null;
        }

    }
    public Long getBirthdatalong(){
        return birthDate;
    }
    public void setBirthDate(Long birthDate) {
        this.birthDate = birthDate;
    }

    public String getDomicile() {
        return domicile;
    }

    public void setDomicile(String domicile) {
        this.domicile = domicile;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTeamNo() {
        return teamNo;
    }

    public void setTeamNo(String teamNo) {
        this.teamNo = teamNo;
    }

    private String name;
    private Long birthDate=null;
    private String domicile;
    private String major;
    private String nation;
    private String phone;
    private String teamNo;
}
